{template "content","header"}
{pc:content  action="lists" catid="$catid" order="id ASC" cache=86400 num="25"}
{loop $data $v}
{pc:get sql="select * from v9_picture_data where id=$v[id]" return="article" /}
{php $articles[]=(array)$article[0]['pictureurls'];}
{/pc}
{/loop}
{/pc}
<?php
if(is_array($articles[0]) && is_array($articles[1])){
    $photos = array_merge($articles[0],$articles[1]);
}else{
    $photos = $articles[0];
}
    $xml_string = <<<XML
<?xml version='1.0' encoding='utf-8'?>
<thumbnails>
</thumbnails>
XML;
$xml = simplexml_load_string($xml_string);
$photos = eval('return '.$photos[0].';');
//由于Flash需要60张图片才能显示得好看，所以～
$count = count($photos);
$cha = 60-$count;
if($count<60){
$temp = array();
for($i=$cha;$i>0;$i--){
$temp[]=$photos[$count-1];
}
$photos = array_merge($photos,$temp);
}
foreach($photos as $key=>$v){
$item = $xml->addChild('thumbnail');
$item->addAttribute('filename',$v['url']);
$item->addAttribute('fileBig',$v['url']);
}
$root_path = dirname($_SERVER['SCRIPT_FILENAME']);
$xml->asXML($root_path.'/3dwall_active.xml');
?>
<div id="main" class="setBoxHeight">
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" name="3d_curve_wall" width="100%" height="100%" align="middle" id="3d_curve_wall">
        <param name="allowScriptAccess" value="sameDomain" />
        <param name="movie" wmode="opaque" value="{PLUGIN_STATICS_PATH}3dwall/3d_curve_wall.swf?xmlurl={APP_PATH}3dwall_active.xml" />
        <param name="quality" value="high" />
        <param name="bgcolor" value="#000000" />
        <param name="wmode" value="opaque" />
        <embed src="{PLUGIN_STATICS_PATH}3dwall/3d_curve_wall.swf?xmlurl={APP_PATH}3dwall_active.xml" quality="high" bgcolor="#000000" width="100%" height="100%" name="3d_curve_wall" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">
        </embed>
    </object>
</div>
{template "content","footer"}
